package com.applet.message.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.applet.common.annotation.Excel;
import com.applet.common.core.domain.BaseEntity;

/**
 * 消息处理对象 message
 * 
 * @author hhy
 * @date 2024-09-06
 */
public class Message extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "主键",dataType = "Long")
    private Long id;

    /** 接收消息的用户id */
    @ApiModelProperty(value = "接收消息的用户id",dataType = "Long")
    @Excel(name = "接收消息的用户id")
    private Long receiveUserId;

    /** 消息内容 */
    @ApiModelProperty(value = "消息内容",dataType = "String")
    @Excel(name = "消息内容")
    private String messageContent;

    /** 消息是否已读: 0未读 1已读 */
    @ApiModelProperty(value = "消息是否已读(0未读 1已读)",dataType = "Integer")
    @Excel(name = "消息是否已读: 0未读 1已读")
    private Integer status;

    /** 消息发送者 */
    @ApiModelProperty(value = "消息发送者",dataType = "String")
    @Excel(name = "消息发送者")
    private String sender;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setReceiveUserId(Long receiveUserId) 
    {
        this.receiveUserId = receiveUserId;
    }

    public Long getReceiveUserId() 
    {
        return receiveUserId;
    }
    public void setMessageContent(String messageContent) 
    {
        this.messageContent = messageContent;
    }

    public String getMessageContent() 
    {
        return messageContent;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setSender(String sender) 
    {
        this.sender = sender;
    }

    public String getSender() 
    {
        return sender;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("receiveUserId", getReceiveUserId())
            .append("messageContent", getMessageContent())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("sender", getSender())
            .toString();
    }
}
